:root {
  /* Day Theme (Light Mode) */
  --primary-color: #610030;
  --secondary-color: #ffd700;
  --accent-color: #e50914;
  --text-color: #2c2c2c;
  --text-secondary: #555555;
  --light-bg: #ffffff;
  --card-bg: #f9f9f9;
  --white: #ffffff;
  --gray: #666666;
  --light-gray: #e5e5e5;
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-heavy: rgba(0, 0, 0, 0.25);
  --transition: all 0.3s ease;
  --hero-bg: radial-gradient(#610030, transparent);

  /* Theme specific colors */
  --footer-text-white: #ffffff;
  --button-colorborder: #610030;
  --selection-color: #ffffff;
  --selection-bg: #610030;
  --popup-bg: rgba(255, 255, 255, 0.95);
  --log-gradient: linear-gradient(135deg, #610030, #3a011d);
  --overlay-gradient: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);

  /* Navigation colors */
  --nav-text: #ffffff;
  --nav-hover: #ffd700;

  /* Secondary Navigations */
  --sec-nav-color: #ffffff;
  --sec-nav-bg: #610030;
  --sec-nav-color-hover: #d1d1d1;
  --sec-nav-bg-hover: #610030c4;

  /* Marquee */
  --marquee-bg: linear-gradient(to right, #61003000 0%, #610030, #61003000);
  --marquee-text: #ffffff;

  /* footer Special */
  --footer-special-h3: #ffd700;
  --footer-special-li: #ffffff;
  --footer-special-li-hover: #ffd700;
  --copy: #747474;

  /* Interactive elements */
  --hover-transform: translateY(-2px);
  --hover-shadow: 0 8px 25px rgba(97, 0, 48, 0.15);

  /* Glassmorphism effects */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --backdrop-blur: blur(15px);
}

/* Dark Theme */
[data-theme="dark"] {
  /* Night Theme (Dark Mode) */
  --primary-color: #ffd700;
  --secondary-color: #610030;
  --accent-color: #ff6b6b;
  --text-color: #e8e8e8;
  --text-secondary: #b8b8b8;
  --light-bg: #252525;
  --card-bg: #1f1f1f;
  --white: #1d1d1d;
  --gray: #888888;
  --light-gray: #333333;
  --border-color: #2a2a2a;
  --shadow-light: rgba(255, 255, 255, 0.05);
  --shadow-medium: rgba(255, 255, 255, 0.1);
  --shadow-heavy: rgba(255, 255, 255, 0.15);

  /* Theme specific colors */
  --footer-text-white: #e8e8e8;
  --button-colorborder: #ffd700;
  --selection-color: #121212;
  --selection-bg: #ffd700;
  --popup-bg: rgba(18, 18, 18, 0.95);
  --log-gradient: linear-gradient(135deg, #1a1a1a, #000000);
  --overlay-gradient: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

  /* Navigation colors */
  --nav-text: #e8e8e8;
  --nav-hover: #ffd700;

  /* Secondary Navigations */
  --sec-nav-color: #ffffff;
  --sec-nav-bg: #610030;
  --sec-nav-color-hover: #d1d1d1;
  --sec-nav-bg-hover: #610030c4;

  /* Marquee */
  --marquee-bg: linear-gradient(to right, #61003000 0%, #610030, #61003000);
  --marquee-text: #ffd700;

  /* footer Special */
  --footer-special-h3: #810041;
  --footer-special-li: #ffffff;
  --footer-special-li-hover: #ffd700;

  /* Interactive elements */
  --hover-transform: translateY(-2px);
  --hover-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);

  /* Glassmorphism effects for dark mode */
  --glass-bg: rgba(18, 18, 18, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --backdrop-blur: blur(20px);
}

/* ======================================================================
=========================================================================
========================================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: "Yaldevi", sans-serif;
}

body {
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
}


/* Saturate / Desaturate */
body.saturated {
  filter: saturate(100%);
  transition: filter 0.5s ease;
}

body.desaturated {
  filter: saturate(0%);
  transition: filter 0.5s ease;
}


.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.more-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
}

.more-opt {
  width: 50px;
  height: 50px;
  background: var(--sec-nav-bg);
  border-radius: 50%;
  border: solid 2px var(--sec-nav-color);
  color: var(--sec-nav-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.7s;
}

.more-ico {
  display: flex;
  gap: 30px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: 0.3s ease;
  border-radius: 25px;
  border: solid 2px var(--sec-nav-color);
  background-color: var(--sec-nav-bg);
  height: 50px;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.more-ico.show {
  opacity: 1;
  transform: scaleX(1);
}

.more-ico a {
  color: var(--sec-nav-color);
  text-decoration: none;
}

.more-container .fa,
.more-container .fa-solid {
  font-size: 15px;
}

#toggle-icon {
  transition: 0.2s;
}

.rotated {
  transform: rotate(-180deg);
}

.scaled {
  transform: scale(1.1);
}

.more-ico .fa:hover,
.more-ico .fa-solid:hover {
  opacity: 0.7;
}

.icon-wrapper {
  position: relative;
  display: inline-block;
  margin: 10px;
}

.tooltip-text {
  visibility: hidden;
  background-color: var(--sec-nav-bg);
  color: var(--sec-nav-color);
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--sec-nav-color);
  padding: 5px 12px;
  position: absolute;
  bottom: 170%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
  font-size: x-small;
}

.icon-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Language dropdown container */
.language-dropdown-container {
  position: relative;
}

/* Language dropdown menu */
.language-dropdown {
  position: fixed;
  bottom: -2px;
  right: 85%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  border: 2px solid var(--sec-nav-color);
  background-color: var(--sec-nav-bg);
  border-radius: 25px;
  height: 50px;
  display: flex;
  padding: 0 10px;
}

/* Show dropdown */
.language-dropdown.show {
  opacity: 1;
  visibility: visible;
}

/* Language options */
.language-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 10px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 500;
  border-radius: 50%;
}

/* Language code styling */
.lang-code {
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

/* Active language option */

.language-option.active .lang-code {
  color: #FFD700;
  font-weight: bolder;
}


@media (max-width: 768px) {
  .language-option {
    font-size: 14px;
  }

  .icon-wrapper {
    margin: 5px;
  }
}


.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--light-bg);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
  border: solid 1px var(--button-colorborder);
  cursor: pointer;
  font-weight: 600;
}

.btn:hover {
  background-color: var(--primary-color);
  color: var(--light-bg);
  border: solid 1px var(--button-colorborder);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lang-btn {
  position: fixed;
  top: 160px;
  left: 20px;
  background-color: #d5d5d515;
  color: var(--primary-color);
  font-size: 9px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 1000;
  text-transform: capitalize;
  backdrop-filter: blur(10px);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title h2 {
  font-size: 36px;
  color: var(--primary-color);
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}


/* Navigation */
header {
  /* background: url('./Event_Banners/Esala/Esala-01.jpg'); */
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  align-items: center;
  width: 90%;
}

.logo {
  display: flex;
  align-items: center;
  float: left;
  margin-top: 15px;
}

.logo img {
  height: 60px;
  margin-right: 10px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--nav-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.motto {
  font-style: italic;
  font-size: 14px;
  color: var(--nav-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-links {
  display: flex;
  list-style: none;
  float: right;
  margin-right: 30px;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links li:first-child {
  margin-left: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--nav-text);
  font-weight: 600;
  transition: var(--transition);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-links a:hover {
  color: var(--nav-hover);
}

.language-switch {
  display: flex;
  align-items: center;
  margin-left: 20px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.first-img {
  width: 100%;
  background: url("./Events/Event-imgs/Drama Post 1.jpg");
}

/* Head Content */
.head-content {
  position: fixed;
  z-index: -1;
}

/* Hero Banner */
.hero {
  height: 70vh;
  width: 100vw;
  background-size: cover;
  background-image: linear-gradient(rgba(0, 0, 0, 0.118), rgba(0, 0, 0, 0.079)), url("./Herobg/hero-bg1.jpg");
  background-position: center;
  color: var(--footer-text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--light-bg);
}

.hero-content {
  max-width: 2000px;
  animation: fadeIn 1s ease;
  background: var(--hero-bg);
  border-radius: 15px;
  height: 70vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-logo {
  width: 400px;
  height: auto;
  align-self: center;
}

.hero-content h1 {
  font-size: 48px;
  /* margin-bottom: 20px; */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.268);
  margin: 0;
  color: var(--primary-color);
}

#hero-subtitle {
  font-style: italic;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 30px;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.268);
  margin: 0;
  color: var(--primary-color);
}

/* Hero Section Mobile Optimization */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Marquee */
marquee {
  height: fit-content;
  padding: 10px 0;
  color: var(--marquee-text);
  background: var(--marquee-bg);
  margin-top: 10px;
  justify-content: center;
  display: flex;
  flex-direction: row;
}

#marquee-text3 {
  font-size: smaller;
}

#marquee-text4,
#marquee-text2,
#marquee-text {
  font-weight: bold;
}

.special-slideshow {
  margin-top: 90vh;
  padding: 80px 0;
  background-color: var(--light-bg);
}

.update-slide {
  /* Position all slides over one another */
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
}

/* Container to establish a viewing window */
.slideshow-container {
  background-color: var(--light-bg);
  max-width: 100%;
  position: relative;
  overflow: hidden; /* This is key to hide banners that are off-screen */
}

/* Individual slide styling */
.slide {
  /* Position all slides over one another */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0; /* Start them all hidden */
  transition: opacity 3s ease-in-out; /* Smooth fade for a simple transition */

  /* If you want the right-to-left slide animation, you'll need to use transform */
  transform: translateX(100%); /* Start off-screen to the right */
  transition: transform 1.5s ease-out, opacity 1.5s; /* Combine transitions */
}

/* Make the active slide visible */
.slide.active {
  opacity: 1;
  transform: translateX(0); /* Move into the view */
  position: relative; /* Set to relative so the container takes its height */
}

/* Make images fill their slide container */
.slide img {
  width: 100%;
  height: auto;
  display: block;
}


/* Mision and Visin */
.mission-vision-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.mission-vision-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.mission-content,
.vision-content {
  flex: 1;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.308);
}

.mission-vision-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.mission-vision-section p {
  line-height: 1.6;
  color: var(--text-color);
}

/* Principal Section */
.principal-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.principal-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 1%;
}

.principal-img {
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.principal-img:hover {
  transform: scale(1.03);
}

.principal-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.principal-text {
  flex: 1;
}

.principal-text h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.principal-text p {
  margin-bottom: 20px;
  color: var(--text-color)
}

/* Teachers Borders */
.principal-content {
  --border-width: 2px;
  --radius: 24px;

  position: relative;
  border-radius: var(--radius);
  border: var(--border-width) solid transparent;
  padding: 1%;
  text-align: justify;
}

.principal-content:hover:before {
  content: " ";
  position: absolute;
  inset: calc(var(--border-width) * -1);
  z-index: -1;
  border: inherit;
  border-radius: inherit;
  background-image: conic-gradient(from var(--angle),
      #ffffff 80%,
      #610030 88%,
      #610030 92%,
      #ffffff 100%);
  background-origin: border-box;
  -webkit-mask: linear-gradient(black, black) content-box,
    linear-gradient(black, black);
  mask: linear-gradient(black, black), linear-gradient(black, black);
  -webkit-mask-clip: content-box, border-box;
  mask-clip: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 5s linear infinite;
}

@supports not (background: paint(something)) {
  .media-object::before {
    background-image: conic-gradient(#ffffff 80%,
        #610030 88%,
        #610030 92%,
        #ffffff 100%);
  }
}

.principal-content:hover::after {
  animation-play-state: paused;
}

@property --angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0turn;
}

@keyframes spin {
  to {
    --angle: 1turn;
  }
}

/* Teachers Section */
.teachers-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.deputy-principals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.teacher-card {
  background-color: var(--white);
  border-radius: 10px;
  /* overflow: hidden; */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.teacher-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.teacher-img {
  height: 250px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.teacher-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.teacher-card:hover .teacher-img img {
  transform: scale(1.1);
}

.teacher-info {
  padding: 20px;
  text-align: center;
}

.teacher-info h3 {
  font-size: 20px;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.teacher-info p {
  color: var(--gray);
  font-size: 14px;
}

.view-all-teachers {
  text-align: center;
  margin-top: 30px;
  color: var(--button-colorborder);
}

/* Teachers Borders */
.teacher-card {
  --border-width: 2px;
  --radius: 24px;

  position: relative;
  border-radius: var(--radius);
  border: var(--border-width) solid transparent;
  padding: 1%;
}

.teacher-card:hover:before {
  content: " ";
  position: absolute;
  inset: calc(var(--border-width) * -1);
  z-index: -1;
  border: inherit;
  border-radius: inherit;
  background-image: conic-gradient(from var(--angle),
      var(--light-bg) 80%,
      var(--primary-color) 88%,
      var(--primary-color) 92%,
      var(--light-bg) 100%);
  background-origin: border-box;
  -webkit-mask: linear-gradient(black, black) content-box,
    linear-gradient(black, black);
  mask: linear-gradient(black, black), linear-gradient(black, black);
  -webkit-mask-clip: content-box, border-box;
  mask-clip: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 5s linear infinite;
}

@supports not (background: paint(something)) {
  .media-object::before {
    background-image: conic-gradient(var(--light-bg) 80%,
        var(--primary-color) 88%,
        var(--primary-color) 92%,
        var(--light-bg) 100%);
  }
}

.teacher-card:hover::after {
  animation-play-state: paused;
}

@property --angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0turn;
}

@keyframes spin {
  to {
    --angle: 1turn;
  }
}

/* History Section */
.history-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.history-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.history-text {
  flex: 2;
}

.history-text p {
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-color);
}

#history-excerpt {
  text-indent: 100px;
}

.audio-player {
  flex: 1;
  background-color: var(--primary-color);
  padding: 30px;
  border-radius: 10px;
  color: var(--white);
  text-align: center;
}

.audio-player h3 {
  margin-bottom: 20px;
}

.audio-controls {
  margin-top: 20px;
}

.audio-controls button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 5px;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.audio-controls button:hover {
  transform: scale(1.1);
}


/* Programs & Events */
.programs-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.event-tab-container {
  display: flex;
  justify-content: center;
  gap: 5%;
}

.event-tab {
  width: fit-content;
  padding: 5px;
}

.event-tab h3 {
  margin-bottom: 10px;
  color: var(--text-color);
}

.slide-container {
  display: flex;
  justify-content: center;
  gap: 5%;
}

.slider {
  position: relative;
  height: 310px;
  width: 310px;
  overflow: hidden;
  box-shadow: 0 5px 10px #00000050;
  border-radius: 25px;
  background-color: var(--light-bg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  top: 100%;
  opacity: 0;
  transition: top 1s ease, opacity 1s ease;
}

.slider img.active {
  top: 0%;
  opacity: 1;
}

/* Event Button */
.event-button {
  display: inline-flex;
  align-items: center;
  float: right;
  margin-top: 20px;
}

/* Base button styles */
.action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 2px solid var(--button-colorborder);
  border-radius: 24px;
  color: var(--button-colorborder);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-border-radius: 24px;
  -moz-border-radius: 24px;
  -ms-border-radius: 24px;
  -o-border-radius: 24px;
}

.action-button:hover {
  border-color: var(--button-colorborder);
  color: var(--button-colorborder);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Text animation */
.button-text {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-button:hover .button-text {
  transform: translateX(-4px);
}

/* Arrow animation */
.arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-button:hover .arrow-icon {
  transform: translateX(8px);
  -webkit-transform: translateX(8px);
  -moz-transform: translateX(8px);
  -ms-transform: translateX(8px);
  -o-transform: translateX(8px);
}

.arrow-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Fill animation effect for "View All" button */
.fill-button {
  position: relative;
  z-index: 1;
}

.fill-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.fill-button:hover::before {
  width: 100%;
}

.fill-button:hover {
  color: var(--light-bg);
  border-color: var(--light-bg);
}

/* =========================================== */

/* Office Hours */
.office-hours {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.hours-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.hours-list {
  list-style: none;
  margin-top: 20px;
  color: var(--text-color)
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.hours-list li:last-child {
  border-bottom: none;
}

.day {
  font-weight: 600;
}

.office-hours h3 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  margin-top: 10px;
}

/* Footer */
footer {
  background: var(--log-gradient);
  color: var(--footer-text-white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--footer-special-h3);
}

.footer-column p,
.footer-column li {
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
}

.footer-column a {
  color: var(--footer-special-li);
  text-decoration: none;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--footer-special-li-hover);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: var(--transition);
  color: var(--footer-text-white);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-5px);
}

.map-container {
  margin-top: 20px;
  height: 150px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: var(--copy);
}

/* Animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-right.active {
  opacity: 1;
  transform: translateX(0);
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* Footer Logo */
.flogo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 30px;
  height: 30px;
  background-size: cover;
  background-position: center;
  display: inline-block;
  margin-top: 1fr;
}

.scl-logo {
  background-image: url("./logo.png");
}

.media-logo {
  background-image: url("./media_logo.png");
}


/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-window {
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s;
    border: 2px solid var(--glass-border);
}

.popup-overlay.active .popup-window {
  transform: scale(1);
}

.popup-icon {
  width: 64px;
  height: 64px;
  background: url("./logo.png");
  background-position: center;
  background-size: cover;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-heavy);
}

.popup-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.popup-message {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.popup-buttons {
  display: flex;
  gap: 12px;
}

.popup-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.cancel-btn {
  background-color: var(--light-gray);
  opacity: 0.9;
  color: var(--text-color);
  border: 1px solid var(--light-gray);
}

.cancel-btn:hover {
  background-color: var(--light-gray);
  color: var(--text-color);
  opacity: 1;
  text-decoration: underline;
}

.login-btn {
  background-color: var(--primary-color);
  opacity: 0.9;
  color: var(--white);
}

.login-btn:hover {
  background-color: var(--primary-color);
  opacity: 1;
}

.hidden {
  display: none;
}


.alertOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--glass-bg);
  backdrop-filter: var(--backdrop-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  transition: opacity 0.7s, visibility 0.7s;
  font-family: "WDXL Lubrifont TC", sans-serif;
}

.alertAlert {
  padding: 50px;
  background-color: var(--glass-bg);
  color: var(--text-color);
  width: 1500px;
  max-width: 100%;
  margin: 50px;
  border-radius: 25px;
  backdrop-filter: 10px;
}

.alertAlert {
  padding: 50px;
  background-color: #ffffff8f;
  color: white;
  width: 1500px;
  max-width: 100%;
  margin: 50px;
  border-radius: 25px;
  backdrop-filter: 10px;
  max-height: 50vh;
  overflow-y: scroll;
}

.alertAlert::-webkit-scrollbar {
  width: 2px;
  border-radius: 25px;
}

.alertAlert::-webkit-scrollbar-track {
  background: transparent;
}

.alertAlert::-webkit-scrollbar-thumb {
  background: rgb(255, 255, 255);
  border-radius: 25px;
  height: 30px;
}

.alertClosebtn {
  color: white;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.alertClosebtn:hover {
  color: black;
}

.alertHidden {
  display: none !important;
}

.update-title {
  font-family: "Russo One", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: black;
  font-size: 50px;
}

.alertAlert h3 {
  margin-bottom: 20px;
  text-decoration: underline;
  color: var(--primary-color);
}

.update-detailes h4 {
  color: rgb(36, 36, 36);
}

.update-detailes p {
  color: rgb(41, 41, 41);
}

ul {
  list-style: none;
  margin-left: 20px;
}

.detail-section {
  margin-bottom: 10px;
}
.detail-section:last-child {
  margin-bottom: 0;
}

.up-date {
  color: rgb(48, 48, 48);
  font-size: small;
  margin: 20px 0 30px 0;
  float: right;
}



/* Alert */

.trigger-button {
  color: white;
  background-color: transparent;
  border: none;
  padding: 0;
  font-size: 16px;
  cursor: pointer;
}

.trigger-button:hover {
  background-color: #640000;
}

.alert-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 400px;
  padding: 20px;
  text-align: center;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 99;
}

.alert-icon {
  color: #f39c12;
  font-size: 48px;
  margin-bottom: 16px;
}

.alert-message {
  margin-bottom: 24px;
}

.sinhala {
  font-family: "Noto Sans Sinhala", Arial, sans-serif;
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.english {
  font-size: 16px;
  color: #555;
}

.close-button {
  background-color: #640000;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.close-button:hover {
  background-color: #640000ad;
}

::selection {
  color: var(--selection-color);
  background: var(--selection-bg);
}


/* ===============================================
   RESPONSIVE STYLES FOR ALL DEVICES
   Desktop (1200px+), Laptop (992px-1199px), 
   Tablet (768px-991px), Mobile (320px-767px)
   =============================================== */

/* ==== DESKTOP (1200px and above) ==== */
@media screen and (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }

  .hero-content h1 {
    font-size: 56px;
  }

  .hero-content p {
    font-size: 32px;
  }

  .section-title h2 {
    font-size: 42px;
  }
}

/* ==== LAPTOP (992px - 1199px) ==== */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 1100px;
    padding: 0 15px;
  }

  /* Navigation */
  .logo img {
    height: 55px;
  }

  .logo-text {
    font-size: 22px;
  }

  .nav-links li {
    margin-left: 25px;
  }

  /* Hero Section */
  .hero-content h1 {
    font-size: 44px;
  }

  .hero-content p {
    font-size: 28px;
  }

  /* Section Titles */
  .section-title h2 {
    font-size: 34px;
  }

  /* Principal Section */
  .principal-content {
    gap: 30px;
  }

  /* Teachers Section */
  .deputy-principals {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  /* Programs Section */
  .event-tab-container {
    gap: 3%;
  }

  .slider {
    height: 280px;
    width: 280px;
  }
}

/* ==== TABLET (768px - 991px) ==== */
@media screen and (max-width: 991px) {
  .container {
    width: 95%;
    padding: 0 15px;
  }

  /* Navigation */
  .nav-links {
    position: fixed;
    top: 80px;
    left: -110%;
    background-color: var(--light-bg);
    backdrop-filter: blur(15px);
    width: 100vw;
    height: calc(100vh - 80px);
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
    transition: all 0.3s ease;
    z-index: 1100;
  }

  .nav-links.active {
    left: -2.5%;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .nav-links a {
    color: var(--primary-color);
    font-size: 18px;
  }

  .nav-links a:hover {
    color: #f39c12;
  }

  .mobile-menu {
    display: block;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
  }

  .language-switch button {
    color: var(--primary-color);
    font-size: 16px;
  }

  /* Hero Section */
  .hero {
    height: 60vh;
  }

  .hero-content {
    width: 100%;
    height: 60vh;
  }

  .hero-logo {
    width: 250px;
    height: auto;
    align-self: center;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 20px;
  }

  /* Section Titles */
  .section-title h2 {
    font-size: 28px;
  }

  /* Mission & Vision */
  .mission-vision-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .mission-content,
  .vision-content {
    padding: 1.5rem;
  }

  /* Principal Section */
  .principal-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .principal-img {
    max-width: 300px;
    margin: 0 auto;
  }

  /* Teachers Section */
  .deputy-principals {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .teacher-card {
    padding: 0.5%;
  }

  .teacher-img {
    height: 200px;
  }

  /* History Section */
  .history-content {
    flex-direction: column;
    gap: 30px;
  }

  .history-text {
    text-align: left;
  }

  .audio-player {
    padding: 25px;
  }

  /* Programs Section */
  .event-tab-container {
    flex-direction: row;
    gap: 30px;
    align-items: center;
  }

  .slider {
    height: 250px;
    width: 250px;
  }

  /* Office Hours */
  .hours-card {
    padding: 30px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .map-container {
    height: 200px;
  }

  /* Special Buttons */
  .lang-btn,
  .special-btn {
    top: 140px;
    font-size: 11px;
    padding: 8px 16px;
  }

  .special-btn {
    right: 15px;
  }

  .lang-btn {
    left: 15px;
  }
}

/* ==== MOBILE LARGE (481px - 767px) ==== */
@media screen and (max-width: 767px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }

  /* Navigation */
  .logo img {
    height: 45px;
  }

  .logo-text {
    font-size: 18px;
  }

  .motto {
    font-size: 12px;
  }

  nav {
    padding: 20px 0;
  }

  .more-container {
    bottom: 20px;
    right: 20px;
    flex-direction: column;
    align-items: flex-end;
  }

  .more-ico {
    flex-direction: column;
    gap: 10px;
    transform-origin: bottom;
    height: auto;
    padding: 10px;
    opacity: 0;
    transform: scaleY(0);
    transition: 0.3s ease;
  }

  .more-container.active .more-ico {
    opacity: 1;
    transform: scaleY(1);
  }

  .language-dropdown {
    right: 0%;
    bottom: 85%;
    height: auto;
    width: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Hero Section */
  .hero {
    height: 90vh;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    width: 100%;
    height: 90vh;
  }

  .hero-content h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 16px;
    margin-bottom: 15px;
  }

  /* Marquee */
  marquee {
    font-size: 12px;
    padding: 8px 0;
  }

  #marquee-text3 {
    font-size: 10px;
  }

  /* Section Titles */
  .section-title h2 {
    font-size: 24px;
  }

  .section-title::after {
    width: 60px;
    height: 2px;
  }

  /* Mission & Vision */
  .mission-vision-section {
    padding: 60px 0;
  }

  .mission-content,
  .vision-content {
    padding: 1.2rem;
  }

  .mission-vision-section h3 {
    font-size: 20px;
  }

  /* Principal Section */
  .principal-section {
    padding: 60px 0;
  }

  .principal-text h3 {
    font-size: 20px;
  }

  /* Teachers Section */
  .teachers-section {
    padding: 60px 0;
  }

  .deputy-principals {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .teacher-info h3 {
    font-size: 18px;
  }

  .teacher-info p {
    font-size: 13px;
  }

  /* History Section */
  .history-section {
    padding: 60px 0;
  }

  .audio-player {
    padding: 20px;
  }

  .audio-player h3 {
    font-size: 18px;
  }

  /* Programs Section */
  .programs-section {
    padding: 30px 0;
  }

  .event-tab h3 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
  }

  .slider {
    height: 200px;
    width: 200px;
  }

  .event-button {
    margin-top: 30px;
    text-align: center;
    float: none;
  }

  .action-button {
    padding: 0.6rem 1.8rem;
    font-size: 0.9rem;
  }

  /* Office Hours */
  .office-hours {
    padding: 60px 0;
  }

  .hours-card {
    padding: 25px;
  }

  .hours-list li {
    flex-direction: column;
    text-align: left;
    gap: 5px;
  }

  .hours-list li .time {
    font-size: 14px;
    color: var(--gray);
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-column h3 {
    font-size: 18px;
  }

  .social-links {
    justify-content: center;
  }

  .map-container {
    height: 180px;
  }

  /* Special Buttons */
  .lang-btn,
  .special-btn {
    top: 120px;
    font-size: 9px;
    padding: 6px 12px;
  }

  .special-btn {
    right: 10px;
  }

  .lang-btn {
    left: 10px;
  }

  /* General Text */
  p,
  a {
    font-size: 14px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* ==== MOBILE SMALL (320px - 480px) ==== */
@media screen and (max-width: 480px) {
  .container {
    width: 98%;
    padding: 0 8px;
  }

  /* Navigation */
  .logo img {
    height: 40px;
  }

  .logo-text {
    font-size: 16px;
  }

  .motto {
    font-size: 10px;
  }

  nav {
    padding: 15px 0;
  }

  /* Hero Section */
  .hero {
    height: 75vh;
  }

  .hero-content {
    width: 100%;
    height: 75vh;
  }

  .hero-logo {
    width: 250px;
    height: auto;
    align-self: center;
  }

  .hero-content h1 {
    font-size: 18px;
    font-family: "Yaldevi", sans-serif;
    font-weight: bold;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 12px;
    font-family: "Yaldevi", sans-serif;
    line-height: 1.3;
  }

  /* Section Titles */
  .section-title h2 {
    font-size: 20px;
  }

  .section-title {
    margin-bottom: 30px;
  }

  /* Mission & Vision */
  .mission-vision-section {
    padding: 50px 0;
  }

  .mission-content,
  .vision-content {
    padding: 1rem;
  }

  .mission-vision-section h3 {
    font-size: 18px;
  }

  .mission-vision-section p {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Principal Section */
  .principal-section {
    padding: 50px 0;
  }

  .principal-text h3 {
    font-size: 18px;
  }

  .principal-text p {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Teachers Section */
  .teachers-section {
    padding: 50px;
  }

  .teacher-img {
    height: 180px;
  }

  .teacher-info {
    padding: 15px;
  }

  .teacher-info h3 {
    font-size: 16px;
  }

  .teacher-info p {
    font-size: 12px;
  }

  /* History Section */
  .history-section {
    padding: 50px 0;
  }

  .history-text p {
    font-size: 13px;
    line-height: 1.5;
    text-align: justify;
  }

  .audio-player {
    padding: 15px;
  }

  .audio-player h3 {
    font-size: 16px;
  }

  .audio-controls button {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  /* Programs Section */
  .programs-section {
    padding: 50px;
  }

  .event-tab h3 {
    font-size: 16px;
  }

  .event-tab-container {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .slider {
    height: 180px;
    width: 180px;
    /* padding: 15px; */
  }

  .event-button {
    margin-top: 25px;
  }

  .action-button {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
  }

  .arrow-icon {
    width: 16px;
    height: 16px;
  }

  /* Office Hours */
  .office-hours {
    padding: 50px 0;
  }

  .hours-card {
    padding: 20px;
  }

  .hours-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .hours-list li {
    padding: 12px 0;
  }

  .day {
    font-size: 13px;
  }

  .hours-list li .time {
    font-size: 12px;
  }

  /* Footer */
  footer {
    padding: 40px 0 20px;
  }

  .footer-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .footer-column p,
  .footer-column li {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .social-links a {
    width: 35px;
    height: 35px;
    line-height: 35px;
  }

  .map-container {
    height: 150px;
  }

  .copyright {
    font-size: 11px;
    padding-top: 20px;
  }

  /* Special Buttons */
  .lang-btn,
  .special-btn {
    top: 100px;
    font-size: 7px;
    padding: 5px 10px;
  }

  .special-btn {
    right: 8px;
  }

  .lang-btn {
    left: 8px;
  }

  /* General Elements */
  p,
  a {
    font-size: 12px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 12px;
  }
}

/* ==== EXTRA SMALL DEVICES (Below 320px) ==== */
@media screen and (max-width: 319px) {
  .container {
    width: 100%;
    padding: 0 5px;
  }

  .hero {
    height: 30vh;
  }

  .hero-content {
    height: 18vh;
    padding: 10px;
  }

  .hero-content h1 {
    font-size: 14px;
  }

  .hero-content p {
    font-size: 10px;
  }

  .section-title h2 {
    font-size: 18px;
  }

  .slider {
    height: 150px;
    width: 150px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 11px;
  }

  .lang-btn,
  .special-btn {
    font-size: 6px;
    padding: 4px 8px;
  }
}
